<?php 
$id= $_GET["id"];
$sql = "select * from phong_hoc where ID=".$id;
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<form name="form1" method="post" action="?mod=qlph&act=updateOk" enctype="multipart/form-data">
<input name="id" type="hidden" value="<?php echo $row["ID"] ?>">

  <p>M&atilde; Ph&ograve;ng:
    <input type="text" name="maPhong" value="<?php echo $row["maPhong"]?>">
  </p>
  <p>T&ecirc;n Ph&ograve;ng: 
    <input type="text" name="tenPhong" value="<?php echo $row["tenPhong"]?>">
  </p>
  <p>S&#7889; Gh&#7871;: 
    <input type="text" name="soGhe" value="<?php echo $row["soGhe"]?>">
  </p>
  <p>M&ocirc; T&#7843;: 
    <input type="text" name="moTa" value="<?php echo $row["moTa"]?>">
  </p>
  <p>
    <input type="submit" name="Submit" value="L&#432;u">
  </p>
</form>
